﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.SqlClient;
using DAO;
using System.Data;


namespace APA_DAO
{
    public class ThietBiDao
    {
        public ThietBiDao()
        {
            new SqlHelper();
        }

        public bool insertThietBi(string tenThietBi, string ghiChu)
        {
            return SqlHelper.ExecuteNonQuery("INSERT INTO dbo.THIET_BI (TEN_THIET_BI, GHI_CHU) VALUES (@tenThietBi, @ghiChu)", CommandType.Text,
                "@tenThietBi", tenThietBi,
                "@ghiChu", ghiChu);
        }
    }
}
